<?php

/**
 * Teaching filter form.
 *
 * @package    elearning
 * @subpackage filter
 * @author     Your name here
 */
class TeachingFormFilter extends BaseTeachingFormFilter
{
  public function configure()
  {
	unset( $this['Note'], $this['created_at'], $this['updated_at'] );
	
	$this->widgetSchema['teaching_status'] = new sfWidgetFormChoice(array(
		'choices' => LevelPeer::getLevelStatusChoices(),
		'expanded' => true,
	));
	
	$this->validatorSchema['teaching_status'] = new sfValidatorChoice(array(
				'required'      => false,
				'choices'       => array_keys(LevelPeer::getLevelStatusChoices()),
	));
		
	$this->widgetSchema->setLabels(array(
		'teacher_id'    => 'Teacher Name',
		'classes_id'   => 'Classes Name',
		'teaching_status' => 'Active',
		'teaching_start_time' => 'Start Time',
		'teaching_end_time' => 'End Time',
		'teaching_count' => 'Teaching count',
	));
  }
  
    public function getFields()
  {
    return array(
      'id'                  => 'Number',
      'teacher_id'          => 'ForeignKey',
      'classes_id'          => 'ForeignKey',
      'teaching_status'     => 'ForeignKey',
      'teaching_start_time' => 'Date',
      'teaching_end_time'   => 'Date',
      'teaching_count'      => 'Number',
      'Note'                => 'Text',
      'created_at'          => 'Date',
      'updated_at'          => 'Date',
    );
  }

 
}
